<?php

namespace JLPay\Models\Ledger\Bill;

use JLPay\Models\BaseResponse;

/**
 * 账单申请URL响应
 */
class BillApplyUrlResponse extends BaseResponse
{
    protected ?string $orgCode = null;
    protected ?string $downloadUrl = null;

    /**
     * 构造函数
     *
     * @param array|null $responseArray
     */
    public function __construct(?array $responseArray = null)
    {
        parent::__construct($responseArray);

        if ($responseArray) {
            $this->orgCode = $responseArray['org_code'] ?? null;
            $this->downloadUrl = $responseArray['download_url'] ?? null;
        }
    }

    /**
     * 获取机构代码
     *
     * @return string|null
     */
    public function getOrgCode(): ?string
    {
        return $this->orgCode;
    }

    /**
     * 获取下载URL
     *
     * @return string|null
     */
    public function getDownloadUrl(): ?string
    {
        return $this->downloadUrl;
    }
} 